-- https://www.phpmyadmin.net/
--

START TRANSACTION;



-- --------------------------------------------------------

--
-- Table structure for table `approval`
--

CREATE TABLE `approval` (
  `id` int(11) NOT NULL,
  `curriculum_id` int(11) DEFAULT NULL,
  `name` varchar(100) DEFAULT NULL,
  `degree` varchar(50) DEFAULT NULL,
  `position` varchar(100) DEFAULT NULL,
  `type` enum('Prepared by','Checked by','Verified by') NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `approval`
--

INSERT INTO `approval` (`id`, `curriculum_id`, `name`, `degree`, `position`, `type`) VALUES
(1, 2, 'Devin Darly Andres', 'PhD, DIT', 'Collage Secretary', 'Prepared by'),
(2, 2, 'Devin Darly Andres', 'Deng', 'Program Chair', 'Checked by'),
(3, 2, 'Devin Darly Andres', 'PhD', 'Collage Dean', 'Verified by');

-- --------------------------------------------------------

--
-- Table structure for table `curriculum`
--

CREATE TABLE `curriculum` (
  `id` int(11) NOT NULL,
  `name` varchar(250) DEFAULT NULL,
  `track` varchar(250) DEFAULT NULL,
  `code` varchar(250) DEFAULT NULL,
  `status` varchar(250) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `curriculum`
--

INSERT INTO `curriculum` (`id`, `name`, `track`, `code`, `status`) VALUES
(1, 'BSCS', 'Networking Security', 'BSCS', 'Active'),
(2, 'BACHELOR OF SCIENCE IN INFORMATION TECHNOLOGY', 'Business Analytic', 'BSIT', 'Active');

-- --------------------------------------------------------

--
-- Table structure for table `room`
--

CREATE TABLE `room` (
  `id` int(11) NOT NULL,
  `room_code` varchar(250) DEFAULT NULL,
  `room_name` varchar(250) DEFAULT NULL,
  `room_information` varchar(250) DEFAULT NULL,
  `type` enum('Laboratory','Lecture','Other') DEFAULT NULL,
  `status` varchar(250) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `room`
--

INSERT INTO `room` (`id`, `room_code`, `room_name`, `room_information`, `type`, `status`) VALUES
(1, '', 'room 1', 'room 1 infomation', 'Lecture', 'Active'),
(2, '', 'room 2', 'room 2 info', 'Laboratory', 'Active');

-- --------------------------------------------------------

--
-- Table structure for table `schedule`
--

CREATE TABLE `schedule` (
  `id` int(11) NOT NULL,
  `days` varchar(250) DEFAULT NULL,
  `faculty_id` varchar(250) DEFAULT NULL,
  `curriculum_id` varchar(250) DEFAULT NULL,
  `section_id` varchar(250) DEFAULT NULL,
  `year_level` varchar(250) DEFAULT NULL,
  `semester` varchar(250) DEFAULT NULL,
  `subject_id` varchar(250) DEFAULT NULL,
  `start_time` varchar(250) DEFAULT NULL,
  `end_time` varchar(250) DEFAULT NULL,
  `room_id` varchar(250) DEFAULT NULL,
  `date` date DEFAULT curdate()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `schedule`
--

INSERT INTO `schedule` (`id`, `days`, `faculty_id`, `curriculum_id`, `section_id`, `year_level`, `semester`, `subject_id`, `start_time`, `end_time`, `room_id`, `date`) VALUES
(1, 'Monday', '2', '2', '1', '1st Year', '1st', '1', '08:00', '09:00', '2', '2025-10-22'),
(2, 'Monday', '1', '2', '2', '1st Year', '1st', '1', '08:00', '09:00', '1', '2025-10-23'),
(4, 'Monday', '1', '2', '1', '1st Year', '1st', '4', '10:00', '11:00', '1', '2025-10-23'),
(5, 'Tuesday', '1', '2', '1', '1st Year', '1st', '8', '11:00', '12:00', '1', '2025-10-23'),
(6, 'Tuesday', '1', '2', '1', '1st Year', '1st', '3', '08:00', '09:00', '1', '2025-10-23'),
(7, 'Wednesday', '1', '2', '1', '1st Year', '1st', '6', '08:00', '09:00', '1', '2025-10-23'),
(8, 'Wednesday', '1', '2', '1', '1st Year', '1st', '7', '09:00', '10:00', '1', '2025-10-23'),
(9, 'Thursday', '1', '2', '1', '1st Year', '1st', '5', '08:00', '09:00', '1', '2025-10-23'),
(10, 'Thursday', '1', '2', '1', '1st Year', '1st', '9', '09:00', '10:00', '1', '2025-10-23');

-- --------------------------------------------------------

--
-- Table structure for table `school_year`
--

CREATE TABLE `school_year` (
  `id` int(11) NOT NULL,
  `sy` varchar(100) DEFAULT NULL,
  `status` varchar(100) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `school_year`
--

INSERT INTO `school_year` (`id`, `sy`, `status`) VALUES
(1, '2025-2026', 'Active'),
(2, '2024-2025', 'Inactive');

-- --------------------------------------------------------

--
-- Table structure for table `section`
--

CREATE TABLE `section` (
  `id` int(11) NOT NULL,
  `curriculum_id` int(11) DEFAULT NULL,
  `section_name` varchar(100) DEFAULT NULL,
  `year_level` varchar(100) DEFAULT NULL,
  `status` varchar(100) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `section`
--

INSERT INTO `section` (`id`, `curriculum_id`, `section_name`, `year_level`, `status`) VALUES
(1, 2, 'BSIT-1A', '1st Year', 'Active'),
(2, 2, 'BSIT-1B', '1st Year', 'Active'),
(3, 1, 'IT-A1', '1st Year', 'Active');

-- --------------------------------------------------------

--
-- Table structure for table `subject`
--

CREATE TABLE `subject` (
  `id` int(11) NOT NULL,
  `curriculum_id` int(11) DEFAULT NULL,
  `track_id` varchar(250) DEFAULT NULL,
  `subject_code` varchar(250) DEFAULT NULL,
  `subject_description` varchar(250) DEFAULT NULL,
  `semester` varchar(100) DEFAULT NULL,
  `lab` int(11) DEFAULT NULL,
  `lec` int(11) DEFAULT NULL,
  `year` varchar(100) DEFAULT NULL,
  `pre_requisite` varchar(250) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `subject`
--

INSERT INTO `subject` (`id`, `curriculum_id`, `track_id`, `subject_code`, `subject_description`, `semester`, `lab`, `lec`, `year`, `pre_requisite`) VALUES
(1, 2, '', '2', 'Math', '1st', 2, 1, '1st Year', 'None'),
(2, 1, '', '1', '1', '1st', 2, 1, '1st Year', 'None'),
(3, 2, '', 'Englist 101', 'Englist', '1st', 0, 1, '1st Year', 'None'),
(4, 2, '', 'Com 101', 'Communication', '1st', 0, 1, '1st Year', 'None'),
(5, 2, '', 'Mid', 'Mid subject', '1st', 1, 1, '1st Year', 'None'),
(6, 2, '', '3', '3', '1st', 3, 3, '1st Year', 'None'),
(7, 2, '', '1', '1', '1st', 1, 1, '1st Year', 'None'),
(8, 2, '', 'F1', 'Filipino', '1st', 0, 1, '1st Year', 'None'),
(9, 2, '', 'COM1', 'Computer 1', '1st', 1, 1, '1st Year', 'None');

--
-- Indexes for table `approval`
--
ALTER TABLE `approval`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `curriculum`
--
ALTER TABLE `curriculum`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `room`
--
ALTER TABLE `room`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `schedule`
--
ALTER TABLE `schedule`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `school_year`
--
ALTER TABLE `school_year`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `section`
--
ALTER TABLE `section`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `subject`
--
ALTER TABLE `subject`
  ADD PRIMARY KEY (`id`);

--
-- AUTO_INCREMENT for table `approval`
--
ALTER TABLE `approval`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `curriculum`
--
ALTER TABLE `curriculum`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `room`
--
ALTER TABLE `room`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `schedule`
--
ALTER TABLE `schedule`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;

--
-- AUTO_INCREMENT for table `school_year`
--
ALTER TABLE `school_year`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `section`
--
ALTER TABLE `section`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `subject`
--
ALTER TABLE `subject`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
COMMIT;

